package Buslog;

//import serviceLayer.ActionInvoker;

public abstract class User{
    
     //protected variables
     protected String name;
     protected String password;
     //protected String emale; soon...
     protected int id;
     protected int tableId;
     //protected ActionInvoker invoker;
     //public int type;
     int permission;//1-non autorised 2-user 3-admin
     
     User(int id, String name,String password,int perm, int tableId){
         this.id = id;
         this.name = name;
         this.tableId = tableId;
         this.permission = perm;
         this.password = password;
     }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
    public int getPermission() {
        return permission;
    }

    public void setPermission(int id) {
        this.permission = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public int gettableId() {
        return tableId;
    }

    public void settableId(int id) {
        this.tableId = id;
    }
    
}